invoke once on update unity

83

invoke once on update unity -

bool isDone = false;

void Update() {
    if (!isDone) {
        // put your code that runs once here
        isDone = true;
    }
}

Comments

Submit
0 Comments